package com.weixing.mall.provider.support.excel.EnumConverter;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.CellData;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import com.weixing.mall.provider.model.enums.AdvertsingEunm;

/**
 * @author jzy
 * @date 2020/6/19
 */
public class AdvertisingStatusConverter implements Converter<AdvertsingEunm> {
    @Override
    public Class supportJavaTypeKey() {
        return null;
    }

    @Override
    public CellDataTypeEnum supportExcelTypeKey() {
        return null;
    }

    @Override
    public AdvertsingEunm convertToJavaData(CellData cellData, ExcelContentProperty excelContentProperty, GlobalConfiguration globalConfiguration) throws Exception {
        return null;
    }

    @Override
    public CellData convertToExcelData(AdvertsingEunm advertsingEunm, ExcelContentProperty excelContentProperty, GlobalConfiguration globalConfiguration) throws Exception {
        return new CellData(advertsingEunm.getDesp());
    }
}
